/*
 * PowerTemperaturePlot.hpp
 *
 * Copyright 2012 Pieter Agten
 *
 * This file is part of tltgen.
 *
 * tltgen is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * tltgen is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with tltgen.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * @file   PowerTemperaturePlot.hpp
 * @author Pieter Agten (pieter.agten@gmail.com)
 * @date   5 feb 2013
 */

#ifndef POWERTEMPERATUREPLOT_HPP
#define POWERTEMPERATUREPLOT_HPP

#include "TemperaturePlot.hpp"

namespace tltgen {

  class PowerTemperaturePlot : public TemperaturePlot {
  public:
    PowerTemperaturePlot(const shared_ptr<ThermistorTable>& thermistorTable, const shared_ptr<LeastSquaresSolver>& solver, const shared_ptr<TemperatureScale const>& temperatureScale);

    std::string getTitle() const;

    virtual std::string getYLabel() const;
    virtual unsigned int getYMaxDigits() const;

    virtual bool isValidRow(ThermistorTableRow* thermistorTableRow) const;
    virtual PLFLT getYValue(ThermistorTableRow* thermistorTableRow) const;
    virtual PLFLT getYValue(const shared_ptr<Thermistor>& thermistor, PLFLT xValue) const;
  };

}

#endif
